<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>科室职责</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="static/css/font.css">
    <link rel="stylesheet" href="static/css/xadmin.css">
    <script type="text/javascript" src="static/js/jquery-3.3.1.js"></script>
    <script type="text/javascript" src="static/lib/layui/layui.js"></script>
    <script type="text/javascript" src="static/js/xadmin.js"></script>

    <style type="text/css">
        .layui-table-cell {
            height: auto;
            line-height: 30px;
            padding: auto;
            position: relative;
            overflow: hidden;
            text-overflow: ellipsis;
            box-sizing: border-box;
            font-size:15px;
            white-space: normal;   //nowrap=不换行   normal=正常
        }
        .layui-elem-dep {
            margin-bottom: 2px;
            padding: 15px;
            line-height: 22px;
            border-left: 5px solid #f2f2f2;
            border-radius: 0 2px 2px 0;
            font-size:30px;
            color: #FF4500;
        }
    </style>
</head>

<body class="layui-anim layui-anim-up">

<div class="x-nav">
		<span class="layui-breadcrumb"> <a>首页</a> <a>个人信息</a> <a> <cite>科室职责</cite></a>
            <!-- 在文本中添加提示信息 -->
		</span>
</div>

<div style="text-align: center">
    <blockquote class="layui-elem-dep">科室职责</blockquote>
    <table class="layui-table"
           lay-data="{height: 'full-250', cellMinWidth:580, url:'responsibility/getDepartmentRespInfo.do', page:false, id:'idTest'}"
           lay-filter="demo">
        <thead>
            <th
                    lay-data="{field:'dName', templet: '<span>{{d.department.dName}}</span>',width:150, align: 'center'}">科室
            </th>
            <th
                    lay-data="{field:'rContent', templet: '<span>{{d.respment.rContent}}</span>',minWidth:110,align: 'left'}">职责
            </th>


        </thead>
    </table>
</div>

</div>

<script>

    // 刷新(主要用于批量删除，不能直接在里面刷新，那样会使操作失败，要跳出来执行)
    function myReload() {
        location.replace(location.href);
    }

    layui.use(['form', 'util', 'layedit', 'laydate', 'table'], function () {
        var form = layui.form
            , util = layui.util
            , layer = layui.layer
            , layedit = layui.layedit
            , laydate = layui.laydate
            , table = layui.table;

        $('.demoTable .layui-btn').on('click', function () {
            var type = $(this).data('type');
            active[type] ? active[type].call(this) : '';
        });

        function relo() {
            var wFlag = $('#wFlag');
            var wFinshLivel = $('#wFinshLivel');
            // 执行重载
            table.reload('idTest', {
                page: {
                    curr: 1 //重新从第 1 页开始
                }
                , where: {
                    w_flag: wFlag.val(),
                    w_finshLivel: wFinshLivel.val()
                }
            });
        }
    })

</script>
</body>
</html>
